import java.util.Random;
import java.util.Scanner;

import java.util.*;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class main4 {
    public static void main6(String[] args) {
        Scanner in = new Scanner(System.in);
        Random random = new Random();
        //  int a= sca.nextInt();
        // System.out.println(a);
        while (in.hasNextInt()) {
            //判断下一个输入是否为整数类型。如果是，则返回true，否则返回false。
            int a = in.nextInt();
            System.out.println(a);
            //next():只读取输入直到空格。
            String str = in.next();
            System.out.println(str);

            //nextLine():读取输入，包括单词之间的空格和除回车以外的所有符号
            String str2 = in.nextLine();
            System.out.println(str2);//空格和回车也会读取，回车结束
//注输入
            System.out.println(1);
        }

    }


    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("输入字符串数组：");

        String str;
        str = sc.nextLine();

        char[] ch = new char[str.length()];
        for (int i = 0; i < str.length(); i++) {
            //用charAt();进行定位分隔a
            ch[i] = str.charAt(i);
            System.out.println(ch[i]+" ");
        }
        System.out.println(ch[0]+" ");

        //读入字符串后,用空格分隔为数组
        String[] strs = str.split(" ");
        System.out.println(Arrays.toString(strs));
        char n = str.charAt(0);
        System.out.println(n);

    }

    public static void main3(String[] args) {
        Scanner sc = new Scanner(System.in);

        while (sc.hasNext()) {
            int n = sc.nextInt();
            String str = sc.next();
            Tes(n, str);
        }

        sc.close();
    }

    public static void Tes(int n, String str) {
        System.out.println("n = " + n);
        System.out.println("str = " + str);
        System.out.println("str.length = " + str.length());
    }

    public static void main4(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();

        //注意！！！光标换到下一行
        sc.nextLine();

        String s = sc.nextLine();
        String str = sc.nextLine();

        System.out.println("n = " + n + " , m = " + m);
        System.out.println("s = " + s);
        System.out.println("str = " + str);

        sc.close();
    }

    public static void main7(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        String[] strs = new String[n];

        sc.nextLine();

        for (int i = 0; i < n; i++) {
            String str = sc.nextLine();
            strs[i] = str;
        }

        Tes2(strs);
        System.out.println("End");
        sc.close();
    }

    public static void Tes2(String[] strs) {
        for (int i = 0; i < strs.length; i++) {
            String str = strs[i];
            System.out.println(str);
        }

    }
}